package com.RedRiver.hospitalsystem.personal_service.service;

import com.RedRiver.hospitalsystem.personal_service.infra.model.Account;
import com.RedRiver.hospitalsystem.personal_service.service.Form.AccountForm;
import com.RedRiver.hospitalsystem.personal_service.service.Form.Login;
import com.RedRiver.hospitalsystem.personal_service.service.Form.PageForm;
import com.RedRiver.hospitalsystem.personal_service.service.info.AccountPageInfo;
import com.RedRiver.hospitalsystem.result.Result;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 龙世超
 * @since 2022-04-26
 */
public interface AccountService extends IService<Account> {

    Result createAccount(AccountForm accountForm);

    Result update(AccountForm accountForm);

    Result delete(Integer accountId);

    IPage<AccountPageInfo> findPageAllAccount(PageForm form);

    Result<String> login(Login loginAccount);
}
